package com.yuelao.yuelao_backend.dto.request;

import lombok.Data;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

@Data
public class PurchaseItemRequest {
    @NotNull(message = "商品ID不能为空")
    private Long itemId;

    @NotNull(message = "购买数量不能为空")
    @Min(value = 1, message = "购买数量必须大于0")
    private Integer quantity;
}